package com.hexinfo.dmpro.script.pack.service.impl;

import com.hexinfo.dmpro.script.pack.dao.ScriptPackScanItemMapper;
import com.hexinfo.dmpro.component.code.detection.entity.ScriptPackScanItemEntity;
import com.hexinfo.dmpro.script.pack.service.IScriptPackScanItemService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Package com.hexinfo.dmpro.script.pack.service.impl
 * @ClassName ScriptPackScanItemServiceImpl
 * @Description 脚本打包扫描配置-业务接口
 * @Author Wang zhihao
 * @Date 2023/9/27 14:08
 * @Version v1.0
 **/
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ScriptPackScanItemServiceImpl implements IScriptPackScanItemService {

    private final ScriptPackScanItemMapper scriptPackScanItemMapper;

    /**
     * @Method getListByScriptType
     * @Param
     * @param scriptType
     * @Return java.util.List<com.hexinfo.dmpro.component.code.detection.model.ScriptPackScanItem>
     * @Description 根据脚本类型获取扫描配置清单
     * @Author Wang zhihao
     * @Date 2023/9/27 14:09
     * @Version V1.0
     */
    @Override
    public List<ScriptPackScanItemEntity> getListByScriptType(String scriptType) {
        return scriptPackScanItemMapper.getListByScriptType(scriptType);
    }
}
